package com.lintesis.lintesismodel.users;

/**
 * This class lets specify the type of an identity number of a person. For example, in Argentina: DNI, LE, etc.
 * 
 * @author ramiro.laso
 * Creation Date: 15-11-2010
 * 
 * Modifications:
 * 
 * |-------------|-------------|----------|----------|-----------------------------------------------------------------------------|
 * | Bugzilla Id |Author       | Version  |  Date    | Description 																   |
 * |-------------|-------------|----------|----------|-----------------------------------------------------------------------------|
 * |             |             |          |		     |     															               |
 * |             |             |          |			 |              															   |
 * |             |             |          |			 |              															   |
 * |-------------|-------------|----------|----------|-----------------------------------------------------------------------------|     
 * |             |             |          |		     |     															               |
 * |             |             |          |			 |              															   |
 * |             |             |          |			 |              															   |
 * |-------------|-------------|----------|----------|-----------------------------------------------------------------------------|   
 * |             |             |          |		     |     															               |
 * |             |             |          |			 |              															   |
 * |             |             |          |			 |              															   |
 * |-------------|-------------|----------|----------|-----------------------------------------------------------------------------|   
*/ 
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.lintesis.lintesismodel.common.hibernate.BussinessObject;

@Entity
public class IdType extends BussinessObject{
	
	@javax.persistence.SequenceGenerator( name="SEQ_ID_TYPE", sequenceName="SEQ_ID_TYPE", allocationSize=1)
	
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_ID_TYPE")
	private Integer idTypeId;
	private String description;
	
	@Override
	public String getObjectDescription() {
		String ret="idTypeId="+idTypeId+", description="+description;
		return null;
	}
	@Override
	public void doAfterDelete() {
		// TODO Auto-generated method stub
	}
	
	@Override
	public void doAfterSave() {
		// TODO Auto-generated method stub
	}
	
	@Override
	public void doBeforeDelete() {
		// TODO Auto-generated method stub
	}
	
	@Override
	public void doBeforeSave() {
		// TODO Auto-generated method stub
	}
	
	@Override
	public Integer getId() {
		return null;
	}
	
	public Integer getIdTypeId() {
		return idTypeId;
	}
	
	public void setIdTypeId(Integer identificationTypeId) {
		this.idTypeId = identificationTypeId;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
}
	